/*
 * @(#) ISeqService.java  1.0  2004-4-12
 *
 * Copyright 2003 by LongTop Corporation.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * LongTop Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with LongTop.
 */

package com.cnc.bas.seq;

/**
 * User: Du bf
 * Date: 2004-4-12
 * Time: 16:38:09
 */
public interface ISeqService {
    /**
     * /获取ID，Key为不带下划线的表名
     *
     * @param key
     * @return generated id
     * @throws com.cnc.bas.seq.SequenceException
     *
     */
    public Long getID(String key) throws SequenceException;

    //获取编号，Key为编号名称，OfficeCode为机构代码
    public String getSequenceNo(String key, String officeCode) throws SequenceException;
}
